<@page.html title="小团操预约及入场">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<script type="text/javascript">
  function cancel(id) {
    if(window.confirm("确定要取消预约吗?"))
      oper("_cancel?id="+id);
  }

  var _saleId = null;
  function clear(id, mm, sales) {
    _saleId = id;
    openWin("getPay?money="+mm+"&sales="+sales, 500, 400);
  }
  function payOk(vv) {
    postJson("_clear","id="+_saleId+"&payls="+encodeURIComponent(vv), clearRet);
  }
  function clearRet(data) {
    window.alert(data.msg);
    if(data.ret) {
      reloadlist();
      window.open("print?id="+_saleId, true);
    }
  }
</script>
  <div class="search">
    <form id="fm_query" action="_list">
      <dl>
        <dt>类型</dt>
        <dd><select name="classType"><option value="">全部</option><option value="1">1对1</option><option value="2">1对多</option></select></dd>
        <dt>会员卡号</dt>
        <dd><input type="text" name="cardCode" value="" size="16" /></dd>
        <dt>手机号</dt>
        <dd><input type="text" name="mobile" value="" size="16" /></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <dd class="oper"><#if canAdd??><a class="add" href="javascript:open('add');">1对1小团操预约</a> <a class="add" href="javascript:open('../gcBespeak2/list');">1对多小团操预约</a></#if></dd>
      </dl>
    </form>
  </div>
  <div id="div_list"></div>
<script type="text/javascript">query();</script>
</@page.html>